
exports.__esModule = true;
exports.default = void 0;

const _utils = require('../utils');

const _field = require('../mixins/field');

const _relation = require('../mixins/relation');

const _createNamespace = (0, _utils.createNamespace)('radio-group');
const createComponent = _createNamespace[0];
const bem = _createNamespace[1];

const _default = createComponent({
  mixins: [(0, _relation.ParentMixin)('vanRadio'), _field.FieldMixin],
  props: {
    value: null,
    disabled: Boolean,
    direction: String,
    checkedColor: String,
    iconSize: [Number, String],
  },
  watch: {
    value: function value(_value) {
      this.$emit('change', _value);
    },
  },
  render: function render() {
    const h = arguments[0];
    return h('div', {
      class: bem([this.direction]),
      attrs: {
        role: 'radiogroup',
      },
    }, [this.slots()]);
  },
});

exports.default = _default;
